fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

slice

Sequence.slice

I 
type
:
integer,
from I,
to I
create a slice from this Sequence that consists of the elements starting at index
from (including) up to index to (excluding).
Precondition
pre
  debug : from ≥ 0
  debug : to = 0 || (if is_array_backed || debug_level > 1 then is_valid_index to-1 else true)
  debug : from <= to
Postcondition
post
  debug: result.finite.is_yes_or_unknown
  debug: result.count = (to-from).as_i64

Type Parameters

Arguments

from
 I
to
 I
0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
last changed: 2026-11-04